#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
    int i = 0;
    int max = 0;
    int arr1[10];
    for (int i = 0; i < 10; i++) {
        scanf("%d", &arr1[i]);
    }
    max = arr1[0];
    for (int i = 1; i < 10; i++) {
        max = arr1[++i] > max ? arr1[++i] : max;
    }
    printf("%d\n", max);
    return 0;
}